package org.dromara.admin.domain.vo;

import java.math.BigDecimal;
import org.dromara.admin.domain.AccountBook;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.system.domain.vo.SysUserVo;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 账本视图对象 hr_account_book
 *
 * @author Lion Li
 * @date 2025-09-23
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = AccountBook.class)
public class AccountBookVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 账本ID
     */
    @ExcelProperty(value = "账本ID")
    private Long id;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;

    /**
     * 类型:RENT_INCOME-租金收入，WITHDRAWAL-提现
     */
    @ExcelProperty(value = "类型:RENT_INCOME-租金收入，WITHDRAWAL-提现")
    private String type;

    /**
     * 金额
     */
    @ExcelProperty(value = "金额")
    private BigDecimal amount;

    /**
     * 实际到账金额
     */
    @ExcelProperty(value = "实际到账金额")
    private BigDecimal actualAmount;

    /**
     * 操作后余额
     */
    @ExcelProperty(value = "操作后余额")
    private BigDecimal balance;

    /**
     * 第三方表ID
     */
    @ExcelProperty(value = "第三方表ID")
    private Long relatedId;

    /**
     * 第三方表名称
     */
    @ExcelProperty(value = "第三方表名称")
    private String relatedTable;

    /**
     * 状态：PENDING(待审核), APPROVED(通过), REJECTED(拒绝)
     */
    @ExcelProperty(value = "状态")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remarks;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 关联的第三方表数据
     */
    private ContractBillVo relatedContractBill;

    /**
     * 租客用户详细信息
     */
    @ExcelProperty(value = "租客用户详细信息")
    private UserDetailVo tenantUserDetail;

    /**
     * 资方用户
     */
    @ExcelProperty(value = "资方用户")
    private SysUserVo capitalUser;

    /**
     * 资方用户详细信息
     */
    private UserDetailVo capitalUserDetail;

}
